From c125eb9c047b908b2bb18e5cf4a88355a1526a25 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Fri, 9 Sep 2005 09:13:45 +0000 Subject: [PATCH] Fix blkfront request completion. --- linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c index 8226222db4..16f7657400 100644 --- a/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c +++ b/linux-2.6-xen-sparse/drivers/xen/blkfront/blkfront.c @@ -776,8 +776,8 @@ static void blkif_completion(struct blk_shadow *s) { int i; for (i = 0; i < s->req.nr_segments; i++) - gnttab_free_grant_reference( - blkif_gref_from_fas(s->req.frame_and_sects[i])); + gnttab_end_foreign_access( + blkif_gref_from_fas(s->req.frame_and_sects[i]), 0); } /* -- 2.30.2